package com.hu.bme.e_learning;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

public class E_learningActivity extends Activity {
    private static final String TAG = "E_learningActivity";
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        View layout = findViewById(R.id.MainLinearLayout01);
        
        layout.setOnClickListener(new android.view.View.OnClickListener() {			
			public void onClick(View v) {
				//Toast.makeText(E_learningActivity.this,"Starting...",Toast.LENGTH_SHORT).show();
				Log.i(TAG, "Starting SecondActivity");
				startActivity(new Intent(E_learningActivity.this, SecondActivity.class));
			}
		});

		Log.i(TAG, "onCreate");
    }
    /** Another activity is taking focus (this activity is about to be "paused"). */
    @Override
    protected void onPause() {
        super.onPause();
        finish();
		Log.i(TAG, "onPause");
    }
}